<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
		<meta name="description" content="">
		<meta name="author" content="">
		<title>Signin Template for Bootstrap</title>
		<!--静态资源-->
<!--		<link th:href="@{/asserts/css/bootstrap.min.css}" rel="stylesheet">-->

		<!-- Bootstrap core CSS 统一静态资源-->

		<link th:href="@{/webjars/bootstrap/4.0.0/dist/css/bootstrap.min.css}" rel="stylesheet">
		<!-- Custom styles for this template -->
		<link th:href="@{/asserts/css/signin.css}" rel="stylesheet">
	</head>

	<body class="text-center">
		<form class="form-signin" th:action="@{/login}" method="get">
			<img class="mb-4"
				 th:src="@{/asserts/img/bootstrap-solid.svg}" alt="" width="72" height="72">
			<h1 class="h3 mb-3 font-weight-normal" th:text="#{empsys.tip}">Please sign in</h1>
			<h4 th:text="${msg}"></h4>
			<label class="sr-only" th:text="#{empsys.username}" >Username</label>
			<input type="text" class="form-control"
				   th:placeholder="#{empsys.username}" th:name="username" required="" autofocus="">
			<label class="sr-only" th:text="#{empsys.password}">Password</label>
			<input type="password" class="form-control"
				   th:placeholder="#{empsys.password}" th:name="password"  required="">
			<div class="checkbox mb-3">
				<label>
          <input type="checkbox" value="remember-me"> [[#{empsys.rememberMe}]]
        </label>
			</div>
			<button class="btn btn-lg btn-primary btn-block" type="submit" th:text="#{empsys.signIn}">Sign in</button>
			<p th:text="${error}" style="color: red"></p>
			<p class="mt-5 mb-3 text-muted">© 2017-2018</p>	  <!--th:href="@{/index('lang=zh_CN')}" 加了引号发的请求不一样-->
			<a class="btn btn-sm" th:text="#{empsys.lang.zh}" th:href="@{/index(lang=zh_CN)}">中文</a>
			<a class="btn btn-sm" th:text="#{empsys.lang.en}" th:href="@{/index(lang=en_US)}">English</a>
			<input type="hidden"  th:name="cnus" th:value="#{empsys.langzhen}"/>
		</form>

	</body>

</html>